/*
 * Component: Small Box
 * --------------------
 */

.small-box {
  .border-radius(2px);
  position: relative;
  display: block;
  margin-bottom: 20px;
  box-shadow: @box-boxshadow;
  // content wrapper
  > .inner {
    padding: 10px;
  }

  > .small-box-footer {
    position: relative;
    text-align: center;
    padding: 3px 0;
    color: #fff;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    z-index: 10;
    background: rgba(0,0,0,0.1);
    text-decoration: none;
    >i {
      font-size: 14px;
      margin-left: 0px;
      color: rgba(255, 255, 255, 0.8);
    }
    &:hover {
      color: #fff;
      background: rgba(0,0,0,0.15);
      > i{
        color: #fff;
      }
    }
  }

  h3 {
    font-size: 38px;
    font-weight: bold;
    margin: 0 0 5px 0;
    // white-space: nowrap;
    padding: 0;

  }

  p {
    font-size: 15px;
    > small {
      display: block;
      color: #f9f9f9;
      font-size: 13px;
      margin-top: 5px;
    }
  }

  h3, p {
    z-index: 5px;
  }

  // the icon
  .icon {
    .transition(all @transition-speed linear);
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
    font-size: 90px;
    color: rgba(0, 0, 0, 0.15);
  }

  // Small box hover state
  &:hover {
    text-decoration: none;
    color: #f9f9f9;
    // Animate icons on small box hover
    .icon {
      font-size: 95px;
    }
  }
  &.small-box-add{
    line-height: 128px;
    height: 128px;
    text-align: center;
    background-color: #fff!important;
    .btn-add{
      font-size: 72px;
      color: #999;
      &:hover{
        color: @green;
      }
    }
  }
  &.farm-box{
    .col-lg-3.col-xs-6:nth-child(4n+1) &{
      background-color: @green;
    }
    .col-lg-3.col-xs-6:nth-child(4n+2) &{
      background-color: @yellow;
    }
    .col-lg-3.col-xs-6:nth-child(4n+3) &{
      background-color: @aqua;
    }
    .col-lg-3.col-xs-6:nth-child(4n+4) &{
      background-color: @red;
    }

    color: #fff;
    border-radius: 5px;
    position: relative;
    height: 128px;
    .bg{
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 128px;
      border-radius: 5px;
      overflow: hidden;
      img{
        width: 100%;
        height: 100%;
        filter:blur(3px);
      }
    }
    >.inner{
      position: absolute;
      z-index: 11;
    }
    h3{
      font-size: 30px;
    }
    >.small-box-footer{
      position: absolute;
      bottom: 0;
      width: 100%;
    }
  }

  &.cata-box{
    .col-lg-3.col-xs-6:nth-child(4n+1) &{
      background-color: @green;
    }
    .col-lg-3.col-xs-6:nth-child(4n+2) &{
      background-color: @yellow;
    }
    .col-lg-3.col-xs-6:nth-child(4n+3) &{
      background-color: @aqua;
    }
    .col-lg-3.col-xs-6:nth-child(4n+4) &{
      background-color: @red;
    }
    
    &.offline {
       background-color:lighten(#000, 70%)!important;
    }

    color: #fff;
    position: relative;

  }

  .control{
    position: absolute;
    top: 10px;
    right: 10px;
    i{
      font-size: 24px;
      opacity: 0.6;
      filter: alpha(opacity=60);
      cursor: pointer;
      &:hover{
        opacity: 1;
        filter: alpha(opacity=100);
      }
      // text-shadow: 1px 1px 1px #fff;
    }
  }
}

@media (max-width: @screen-xs-max) {
  // No need for icons on very small devices
  .small-box {
    text-align: center;
    .icon {
      display: none;
    }
    p {
      font-size: 12px;
    }
  }
}